<html>
<head><meta charset="utf-8"><title>Platform dependency · t-compiler/rust-analyzer · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/index.html">t-compiler/rust-analyzer</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Platform.20dependency.html">Platform dependency</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="187942722"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/Platform%20dependency/near/187942722" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> std::Veetaha <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Platform.20dependency.html#187942722">(Feb 11 2020 at 19:04)</a>:</h4>
<p><span class="user-mention" data-user-id="133169">@matklad</span> , <span class="user-mention" data-user-id="203546">@Laurențiu Nicola</span> , though <a href="https://github.com/rust-analyzer/rust-analyzer/pull/3101" target="_blank" title="https://github.com/rust-analyzer/rust-analyzer/pull/3101">this one</a> is merged, I'd like to settle which specific architectures and on which os are needed to be filtered out. Maybe we should only allow users with the same os and arch as the one we build on ci?</p>



<a name="187943054"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/Platform%20dependency/near/187943054" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Laurențiu <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Platform.20dependency.html#187943054">(Feb 11 2020 at 19:08)</a>:</h4>
<blockquote>
<p>Maybe we should only allow users with the same os and arch as the one we build on ci?</p>
</blockquote>
<p>That's the point, since the binaries aren't really more portable than that. And if we add support for new targets we can relax the self-update check.</p>
<p>I guess we could also encode the target in e.g. the release artifact name to automatically get support for them, but it might not be worth the effort.</p>



<a name="187943784"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/Platform%20dependency/near/187943784" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> std::Veetaha <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Platform.20dependency.html#187943784">(Feb 11 2020 at 19:17)</a>:</h4>
<p>I don't think that we should do automation on selecting the proper binaries from the release right now. The amount of platforms is not so big and we support only a tiny bit of them, though if the list will grow out of control the automation won't be avoidable, but it won't be too hard to implement it.</p>



<a name="187944004"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/Platform%20dependency/near/187944004" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> std::Veetaha <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Platform.20dependency.html#187944004">(Feb 11 2020 at 19:19)</a>:</h4>
<p>So I guess we need to figure out which arch is used on CI and properly select only 3 <code>(os, arch)</code> tuples to match with.</p>



<a name="187944039"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/Platform%20dependency/near/187944039" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> std::Veetaha <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Platform.20dependency.html#187944039">(Feb 11 2020 at 19:19)</a>:</h4>
<p>Right?</p>



<a name="187944043"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/Platform%20dependency/near/187944043" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Laurențiu <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Platform.20dependency.html#187944043">(Feb 11 2020 at 19:19)</a>:</h4>
<p>I agree. So we only support Windows/x64, Linux/x64 and Darwin/x64 (or so I assume).</p>



<a name="187944161"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/Platform%20dependency/near/187944161" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> std::Veetaha <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Platform.20dependency.html#187944161">(Feb 11 2020 at 19:20)</a>:</h4>
<p>Just wanted to ask you on how you figured out which arch we support)</p>



<a name="187944297"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/Platform%20dependency/near/187944297" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Laurențiu <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Platform.20dependency.html#187944297">(Feb 11 2020 at 19:21)</a>:</h4>
<p>I cheated and assumed so. We have binaries for Windows, Mac and Linux, and they must be 64-bit (<code>x86-64</code>, or <code>x64</code> in Node terms)</p>



<a name="187944405"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/Platform%20dependency/near/187944405" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Laurențiu <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Platform.20dependency.html#187944405">(Feb 11 2020 at 19:22)</a>:</h4>
<p>They're built by GitHub Actions: <code>os: [ubuntu-latest, windows-latest, macos-latest]</code></p>



<a name="187944485"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/Platform%20dependency/near/187944485" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> std::Veetaha <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Platform.20dependency.html#187944485">(Feb 11 2020 at 19:23)</a>:</h4>
<p>I hope <span class="user-mention" data-user-id="133169">@matklad</span>  will be able to settle the 3 <code>(os, arch)</code> tuples for sure. Otherwise we may just send a nodejs script on ci that logs <code>process.platform</code> and <code>process.arch</code> so that we are 100% sure.</p>



<a name="187944715"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/Platform%20dependency/near/187944715" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Laurențiu <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Platform.20dependency.html#187944715">(Feb 11 2020 at 19:25)</a>:</h4>
<p>I'm pretty sure they'll be <code>win32</code>, <code>linux</code> and <code>darwin</code> on <code>x64</code></p>



<a name="187944811"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/Platform%20dependency/near/187944811" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Laurențiu <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Platform.20dependency.html#187944811">(Feb 11 2020 at 19:26)</a>:</h4>
<p>(platform and arch)</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>